import { request } from "@/utils/service"
/** 获取分组类型 */
export function configGroupApi() {
  return request({
    url:"/d/config/admin/group",
    method: "POST",
  })
}

/** 列表 */
export function configListApi(data: any) {
  return request({
    url:"/d/config/admin/list",
    method: "POST",
    data
  })
}

/** 修改状态 */
export function editConfigStatusApi(data: any) {
  return request({
    url:"/d/config/admin/update/status",
    method: "POST",
    data
  })
}

/** 修改配置项 */
export function  editConfigApi(data: any) {
  return request({
    url:"/d/config/admin/config/update",
    method: "POST",
    data
  })
}

/** 获取配置项信息 */
export function  getConfigInfoApi(data: any) {
  return request({
    url:"/d/config/admin/config/v2/get",
    method: "POST",
    data
  })
}

